package com.tianji.learning.controller;


import com.tianji.learning.domain.page.PointsBoardQuery;
import com.tianji.learning.domain.vo.PointsBoardVO;
import com.tianji.learning.service.IPointsBoardService;
import com.tianji.learning.service.IPointsRecordService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 学霸天梯榜 前端控制器
 * </p>
 *
 * @author rui
 * @since 2024-07-29
 */
@RestController
@RequestMapping("/boards")
@RequiredArgsConstructor
@Api(tags = "天梯榜相关接口")
public class PointsBoardController {
    private final IPointsBoardService boardService;
    @ApiOperation("查询指定赛季天梯榜单及当前用户排名")
    @GetMapping
    public PointsBoardVO queryRankBySeasonId(PointsBoardQuery query){
        return boardService.queryRankBySeasonId(query);
    }
}
